package com.fileDemo;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: FENGYiMing
 * @Date: 2024/04/09/10:44
 * @Description:
 */
public class BufferWhiteFile01 {
    public static void main(String[] args) throws IOException {
        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("e:/hello.java", true));
        bufferedWriter.write("\n你喜欢我吗？");
        bufferedWriter.newLine(); //换行
        bufferedWriter.write("我不喜欢你");
        bufferedWriter.close();
    }
}
